package com.jj.spb.spring_boot_mybatis.entity;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "VoteResult")
public class VoteResult {

    @Id
    @Column
    public int id;

    @Column
    public long voteId;

    @Column
    public String remark;

    @Column
    public Integer studentId;

    @Column
    public String voteItemIds;

    public long getVoteId() {
        return voteId;
    }

    public void setVoteId(long voteId) {
        this.voteId = voteId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getVoteItemIds() {
        return voteItemIds;
    }

    public void setVoteItemIds(String voteItemIds) {
        this.voteItemIds = voteItemIds;
    }

    @Transient
    public List<VoteItem> voteItemList;

    @Transient
    public Student voter;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<VoteItem> getVoteItemList() {
        return voteItemList;
    }

    public void setVoteItemList(List<VoteItem> voteItemList) {
        this.voteItemList = voteItemList;
    }

    public Student getVoter() {
        return voter;
    }

    public void setVoter(Student voter) {
        this.voter = voter;
    }
}
